home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / AppleScanGS / Scan.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-03  |  1.3 KB  |  65 lines  |  [TEXT/MPS ]

  1. /***********************************************************************
  2. *
  3. * Scan.h
  4. *
  5. * Copyright (c)  1990
  6. * Apple Computer, Inc.
  7. * All Rights Reserved.
  8. *
  9. * This file contains the header data used by the scanner program.
  10. *
  11. ***********************************************************************/
  12. #ifndef _scanner_
  13. #define _scanner_ 1
  14.  
  15. #include <types.h>
  16.  
  17. extern Word SwapBytes();
  18.  
  19. extern Long SwapWords();
  20.  
  21. extern void testPause();
  22.  
  23. extern long Setup_Apple(),Setup_CPCScan();
  24.  
  25. extern Word Scanner_Type;
  26.  
  27. typedef struct scannerWindowStruct {
  28.     byte    reserved0,reserved1,reserved2,reserved3,reserved4,reserved5;
  29.     byte    windDescBlockLenMSB,windDescBlockLenLSB;
  30.     byte    windowIdentifier;
  31.     byte    reserved6;
  32.     word    xResolution,yResolution;
  33.     long    xUpperLeft,yUpperLeft,width,length;
  34.     byte    brightness,threshold,contrast,imageComposition,bitsPerPixel;
  35.     word    halfTone;
  36.     byte    paddingType;
  37.     byte    reserved[10];
  38. } scannerWindowDef;
  39.  
  40.  
  41. #define SHORTINDEX      123
  42.  
  43. #define AppWindow           0x1000
  44.  
  45. #include "ScannerDefs.h"
  46.  
  47. struct cocoonMemRec {
  48.     long itemRefID;
  49.     byte listFlags;
  50.     long windowID;
  51. };
  52.  
  53. typedef struct cocoonMemRec *cocoonMemRecPtr;
  54.  
  55. /* constants used to define the box control */
  56.  
  57. #define XINSET 30
  58. #define YINSET 20
  59. #define XOFFSET 2
  60. #define YOFFSET 2
  61. #define    hPPI    16    /* pixels per inch as displayed on screen rulers */
  62. #define vPPI    10
  63.  
  64.  
  65. #endif